<template>
  <div id="app">
    {{ message }}
    <input v-model="message" @input="inputFn" />
    <button @click="btnFn">按钮</button>
    <router-link to="/">home</router-link>
    <router-link to="/about">about</router-link>

    <router-view/>
  </div>
</template>

<script>
export default {
  name: 'App',
  data () {
    return {
      message: 'message哈哈',
      ipt: 'input'
    }
  },

  methods: {
    inputFn(e) {
      // console.log(e)
    },
    btnFn() {
      console.log('message', this.message)
    }
  },
  mounted () {
    setTimeout(() => {
      this.message = '1hello vue121301'
    }, 2000)
  }
}
</script>